FULLSCREEN = False
colores = ['AMARILLO', 'AZUL', 'BLANCO', 'NARANJA', 'NEGRO', 'ROJO', 'ROSA']
grupos = list('ABCDEFGH')
base_dir = '../media/'
image_base_dir = base_dir + 'img/'
sound_base_dir = base_dir + 'snd/'

class subject:
    """ Monkey/Rabbit/etc """
    normal = image_base_dir + 'monkey-normal.png'
    action = image_base_dir + 'monkey-sneezing.png'
    action_snd = sound_base_dir + 'achoo.ogg'
    pos = (100, 200)


class tester:
    """ Pot/Basket/etc """
    image = image_base_dir + 'MACETA.png'
    pos = (500, 200)

def cod(grupo, color):
    assert grupo in grupos
    assert color in colores
    return grupo + '-' + color

class EstimuliConf:
    def __init__(self, grupo, color):
        self.image = image_base_dir + 'GRUPO-' + cod(grupo, color) + '.png'
        self.name = cod(grupo, color)

estimulus = [EstimuliConf('A', 'AZUL'),
             EstimuliConf('A', 'BLANCO'),
             EstimuliConf('A', 'ROJO')]
#S = Single: Aparece un solo estimulo
#M = Multiple: Aparecen varios estimulos

class Trial:
    def __init__(self, kind, names):
        self.class_code = kind
        if type(names) != list:
            names = [names]
        self.names = names


#Defino flores
flor_azul = cod('A', 'AZUL')
flor_blanca = cod('A', 'BLANCO')

#Defino los trials
trial_simples = [
				('S', flor_azul),
				('S', flor_blanca)
				] * 3

trial_config = trial_simples + 	[
				('M', [flor_azul, flor_blanca])
				]

trial_config = [ Trial(*x) for x in trial_config ]




